#include "homepage.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    HomePage w;
    w.show();

    return a.exec();
}


/*#include <QCoreApplication>
#include "mqtthandler.h"
#include <QDebug>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc,argv);
    //创建MQTT处理器实例
    MqttHandler mqttHandler;
    //设置MQTT服务器地址和端口
    mqttHandler.setHost(QHostAddress("127.0.0.1"));
    mqttHandler.setPort(1883);
    //连接信号槽处理接收到的消息
    QObject::connect(&mqttHandler,&MqttHandler::dataUpSignal, [](const QByteArray &data){
      QDebug() << "Received data up message:" << data;
    });

    QObject::connect(&mqttHandler, &MqttHandler::ctrlUpSignal,[](const QByteArray &data){
      QDebug() << "Received control up message:" << data;
    });
    // 连接到MQTT服务器
    mqttHandler.connectToHost();

    return a.exec();
}
*/
